//Test.c
#include"SList.h"

int main()
{
    SListNode* plist = NULL;

    SListPushBack(&plist, 1);
    SListPushBack(&plist, 2);
    SListPushBack(&plist, 3);
    SListPrint(plist);  // 1 2 3

    SListPopBack(&plist);
    SListPrint(plist);  // 1 2

    SListPushFront(&plist, 3);
    SListPrint(plist);  // 3 1 2

    SListInsertAfter(&plist, SListFind(plist, 1), 10);
    SListPrint(plist);  // 3 1 10 2

    SListEraseAfter(&plist, SListFind(plist, 10));
    SListPrint(plist);  // 3 1 10

    SListDestroy(&plist);

    return 0;
}